package com.hare.common.exception.base;


/**
 * @program: Hare
 * @description: 异常处理基类
 * @author: Hare
 * @create: 2022-07-01 15:58
 * @Version 6.0.1
 **/
public class BaseException extends RuntimeException{

    private static final long serialVersionUID = 1L;


    /**
     * 错误状态码
     */
    private Integer code;

    /**
     * 错误信息
     */
    private String message;



    public BaseException (){}

    public BaseException (Integer code,String message){
            this.code=code;this.message=message;}


    public BaseException (String message){
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
